package com.work.yshop.model;

import java.io.Serializable;
import java.util.List;

/**
 * 商品详情模型类
 */
public class ProductDetail implements Serializable {
    private int id;
    private String name;
    private String description;
    private double price;
    private double originalPrice;
    private String unit;
    private int salesCount;
    private String imageUrl;
    private List<String> detailImages;
    
    // 店铺信息
    private int shopId;
    private String shopName;
    private int shopProductsCount;
    
    // 商品详情信息
    private String origin;      // 产地
    private String specification; // 规格
    private String shelfLife;   // 保质期
    private String features;    // 特点

    public ProductDetail() {
    }

    public ProductDetail(int id, String name, double price, double originalPrice, int salesCount, String imageUrl) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.originalPrice = originalPrice;
        this.salesCount = salesCount;
        this.imageUrl = imageUrl;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getSalesCount() {
        return salesCount;
    }

    public void setSalesCount(int salesCount) {
        this.salesCount = salesCount;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public List<String> getDetailImages() {
        return detailImages;
    }

    public void setDetailImages(List<String> detailImages) {
        this.detailImages = detailImages;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public int getShopProductsCount() {
        return shopProductsCount;
    }

    public void setShopProductsCount(int shopProductsCount) {
        this.shopProductsCount = shopProductsCount;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getShelfLife() {
        return shelfLife;
    }

    public void setShelfLife(String shelfLife) {
        this.shelfLife = shelfLife;
    }

    public String getFeatures() {
        return features;
    }

    public void setFeatures(String features) {
        this.features = features;
    }
} 